import request from '../utils/axios'
export function login(data) {  //登录接口
  return request({
    url: '/login/signUser',
    method: 'get',
    params: data
  })
}
export function register(data) {   //注册接口
  return request({
    method: 'post',
    url: '/register/createUser',
    data: data
  })
}
export function getUserInfo() {   //首页获取用户信息接口
  return request({
    method: 'get',
    url: '/home/getUserInfo'
  })
}
export function getClassInfo(data) {   //首页获取用户信息接口
  return request({
    method: 'get',
    url: '/home/getClassInfo',
    params: data
  })
}
export function getClassComments(data) {   //首页获取用户信息接口
  return request({
    method: 'get',
    url: '/comment/getClassComments',
    params: data
  })
}
export function sendClassComment(data) {   //首页获取用户信息接口
  return request({
    method: 'post',
    url: '/comment/sendClassComment',
    data: data
  })
}
export function getChatConnection() {   //打开聊天框获取聊天对象列表
  return request({
    method: 'get',
    url: '/chat/getChatConnection',
  })
}
export function sendMessage(data) {   //首页获取用户信息接口
  return request({
    method: 'post',
    url: '/chat/sendMessage',
    data: data
  })
}

export function getChatHistory(data) {   //查询聊天记录
  return request({
    method: 'get',
    url: '/chat/getChatHistory',
    params: data
  })
}
export function getNewMessageCount() {   //查询聊天记录
  return request({
    method: 'get',
    url: '/chat/getNewMessageCount',
  })
}
export function clearNewMessageCount() {   //查询聊天记录
  return request({
    method: 'get',
    url: '/chat/clearNewMessageCount',
  })
}
export function searchUser(data) {   //查询聊天记录
  return request({
    method: 'get',
    url: '/chat/getUserList',
    params: data
  })
}
export function addConnection(data) {   //新增聊天对象
  return request({
    method: 'post',
    url: '/chat/addConnection',
    data: data
  })
}
export function closeConnection(data) {   //删除聊天对象
  return request({
    method: 'post',
    url: '/chat/closeConnection',
    data: data
  })
}
export function getSchoollist() {   //获取学校列表
  return request({
    method: 'get',
    url: '/set/getSchoolList',
  })
}
export function getClasslist(data) {   //查询班级列表
  return request({
    method: 'get',
    url: '/set/getClasslist',
    params: data
  })
}
export function setMyBasicInfo(data) {   //设置个人信息
  return request({
    method: 'post',
    url: '/set/setMyBasicInfo',
    data: data
  })
}
export function getLostThingList(data) {   //获取遗失物品列表
  return request({
    method: 'get',
    url: '/lost/getLostThing',
    params: data
  })
}
export function createLostThing(data) {   //发布失物招领
  return request({
    method: 'post',
    url: '/lost/createLostThing',
    data: data
  })
}
export function getThingDetail(data) {   //获取遗失物品详情
  return request({
    method: 'get',
    url: '/lost/getThingDetail',
    params: data
  })
}
export function setThingQuestion(data) {   //设置失物认领问题
  return request({
    method: 'post',
    url: '/lost/setThingQuestion',
    data: data
  })
}
export function sendAnswers(data) {   //失物认领
  return request({
    method: 'post',
    url: '/lost/sendAnswers',
    data: data
  })
}
export function getMyList(data) {   //获取我发布的失物招领
  return request({
    method: 'get',
    url: '/lost/getMyList',
    params: data
  })
}
export function getMyEnterList(data) {   //获取我发布的失物招领
  return request({
    method: 'get',
    url: '/lost/getMyEnterList',
    params: data
  })
}
export function getManageTable(data) {   //获取超级工作台表格数据
  return request({
    method: 'get',
    url: '/lost/getManageTable',
    params: data
  })
}
export function getManageDetail(data) {   //获取超级工作台图表数据
  return request({
    method: 'get',
    url: '/lost/getManageDetail',
    params: data
  })
}
export function getHomeworkList(data) {   //获取作业列表
  return request({
    method: 'get',
    url: '/homework/getHomeworkList',
    params: data
  })
}
export function getHandleHistory(data) {   //获取我提交的作业列表
  return request({
    method: 'get',
    url: '/homework/getHandleHistory',
    params: data
  })
}
export function handlehomework(data) {   //提交作业
  return request({
    method: 'post',
    url: '/homework/handlehomework',
    data: data
  })
}
export function getClassmates(data) {   //大学习获取班级名单
  return request({
    method: 'get',
    url: '/studyInfo/classmates',
  })
}
export function getTempLi(data) {   //大学习获取期数
  return request({
    method: 'get',
    url: '/studyInfo/getTempList',  
  })
}
export function getCrop(data) {   //大学习获取期数
  return request({
    method: 'get',
    url: '/studyInfo/getCorpInfo',  
  })
}
export function getStudyDetail(data) {   //大学习获取期数
  return request({
    method: 'get',
    url: '/studyInfo/getPersonList',  
    params: data
  })
}
export function getAllStudyDetail(data) {   //大学习获取学院学习情况
  return request({
    method: 'get',
    url: '/studyInfo/getCollegeList',  
    params: data
  })
}
export function getEmailHistory() {   //获取邮件列表
  return request({
    method: 'get',
    url: '/email/getEmails',  
  })
}
export function emailDetail(data) {   //获取邮件详情
  return request({
    method: 'get',
    url: '/email/getEmaildetail', 
    params: data 
  })
}
export function sendEmail(data) {   //发送uooki站内邮件
  return request({
    method: 'post',
    url: '/email/sendEmail',
    data: data
  })
}
export function readAll(data) {   //一键已读
  return request({
    method: 'post',
    url: '/email/readAll',
    data: data
  })
}
export function deleteMail(data) {   //删除邮件
  return request({
    method: 'post',
    url: '/email/deleteEmail',
    data: data
  })
}
export function sendQQEmail(data) {   //发送QQ邮件
  return request({
    method: 'post',
    url: '/email/sendQQEmail',
    data: data
  })
}
export function getClassmateList(data) {   //个人中心-班级通讯录获取列表
  return request({
    method: 'get',
    url: '/home/getMatesList',
    params: data
  })
}
export function GetPrizeDetail(data) {   //获取获奖记录审批邮箱内容
  return request({
    method: 'get',
    url: '/prize/queryPrizeDetail',
    params: data
  })
}
export function setClassApprovel(data) {   //班级审核结果提交
  return request({
    method: 'post',
    url: '/prize/setClassApprovel',
    data: data
  })
}
export function setSchoolApprovel(data) {   //院校审核结果提交
  return request({
    method: 'post',
    url: '/prize/setSchoolApprovel',
    data: data
  })
}
export function addLight(data) {   //表白墙评论区点赞
  return request({
    method: 'post',
    url: '/confession/thumbsUp',
    data: data
  })
}
export function offShelf(data) {   //下架失物招领
  return request({
    method: 'post',
    url: '/lost/offShelf',
    data: data
  })
}
export function getClassList(data) {   //获取班级管理中table数据
  return request({
    method: 'get',
    url: '/classManage/getClassList',
    params: data
  })
}
export function createClass(data) {   //新建班级
  return request({
    method: 'post',
    url: '/classManage/createClass',
    data: data
  })
}
export function deleteClass(data) {   //删除班级
  return request({
    method: 'post',
    url: '/classManage/deleteClass',
    data: data
  })
}
export function editClass(data) {   //编辑班级
  return request({
    method: 'post',
    url: '/classManage/editClass',
    data: data
  })
}